package com.alibaba.dubbo.demo.provider;

import java.util.List;

import com.alibaba.dubbo.demo.SysBackuplogInterface;
import com.alibaba.dubbo.demo.bean.PageBean;
import com.alibaba.dubbo.demo.bean.SysBackuplog;
import com.alibaba.dubbo.demo.provider.dao.impl.SysBackuplogDaoImpl;

public class SysBackuplogServiceImpl implements SysBackuplogInterface {

	SysBackuplogDaoImpl sysBackupLogDao;
	
	public SysBackuplogDaoImpl getSysBackupLogDao() {
		return sysBackupLogDao;
	}

	public void setSysBackupLogDao(SysBackuplogDaoImpl sysBackupLogDao) {
		this.sysBackupLogDao = sysBackupLogDao;
	}

	@Override
	public boolean saveBackupLog(SysBackuplog log) {
		// TODO Auto-generated method stub
		return sysBackupLogDao.saveBackupLog(log);
	}

	@Override
	public boolean updateBackupLog(SysBackuplog log) {
		// TODO Auto-generated method stub
		return sysBackupLogDao.updateBackupLog(log);
	}

	@Override
	public boolean deleteBackupLog(SysBackuplog log, String date) {
		// TODO Auto-generated method stub
		return sysBackupLogDao.deleteBackupLog(log, date);
	}

	@Override
	public PageBean queryAllBackupLog(PageBean pageBean, String startdate, String enddate) {
		// TODO Auto-generated method stub
		return sysBackupLogDao.queryAllBackupLog(pageBean, startdate, enddate);
	}

	@Override
	public List<SysBackuplog> queryAllBackupLogList(String startdate, String enddate) {
		// TODO Auto-generated method stub
		return sysBackupLogDao.queryAllBackupLogList(startdate, enddate);
	}

	@Override
	public SysBackuplog queryOneBackupLog(int id) {
		// TODO Auto-generated method stub
		return sysBackupLogDao.queryOneBackupLog(id);
	}

}
